package com.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单类
 */

public class order implements Serializable {
    private String orderid;//订单编号
    private int userid;
    private String bookid;
    private int bookcount;
    private double price;
    private Date buyTime;  //下单时间


    public order(String orderid, int userid, String bookid, int bookcount, double price, Date buyTime) {
        this.orderid = orderid;
        this.userid = userid;
        this.bookid = bookid;
        this.bookcount = bookcount;
        this.price = price;
        this.buyTime = buyTime;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getBookid() {
        return bookid;
    }

    public void setBookid(String bookid) {
        this.bookid = bookid;
    }

    public int getBookcount() {
        return bookcount;
    }

    public void setBookcount(int bookcount) {
        this.bookcount = bookcount;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public Date getBuyTime() {
        return buyTime;
    }

    public void setBuyTime(Date buyTime) {
        this.buyTime = buyTime;
    }

    @Override
    public String toString() {
        return "order{" +
                "orderid='" + orderid + '\'' +
                ", userid=" + userid +
                ", bookid='" + bookid + '\'' +
                ", bookcount=" + bookcount +
                ", price=" + price +
                ", buyTime=" + buyTime +
                '}';
    }
}
